
class UrlMappings {
	static mappings = {
		"/$controller/$action?/$id?(.$format)?"{ constraints {
				// apply constraints here
			} }

		"/admin/cat/$id"{
			controller = {'category'}
			action = {'showPageByCategory'}
		}

		"/"(view:"/index")

		"/index"(controller:"home",action:"index")

		"/trang-chu"(controller:"home",action:"index")

		"/admin/login"(view:"/trangphuc/login")
		
		"/log-out"(controller:"login",action:"logout")

	}
}
